import Vue from 'vue'
import App from './App.vue'
import router from './router'
import VueLazyload from 'vue-lazyload'
import store from '@/store'
import TypeNav from '@/components/TypeNav'
import Pagination from '@/components/Pagination'
import Dialog from '@/components/Dialog'
// 全局引入ElementUI
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import { Button, Message } from 'element-ui'
// 启动mock服务器
import '@/mock/mockServer'
import 'swiper/css/swiper.min.css'
import load from '@/assets/load.gif'
Vue.config.productionTip = false
Vue.component(TypeNav.name, TypeNav)
Vue.component(Pagination.name, Pagination)
Vue.component(Dialog.name, Dialog)
Vue.component(Message.name, Message)
Vue.use(VueLazyload, {
  loading: load,
})
new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: (h) => h(App),
  router,
  store,
}).$mount('#app')
